package com.xx.pmis.services.implementations;

import com.xx.pmis.model.SocialBudget;
import com.xx.pmis.persistence.dao.SocialBudgetDAO;
import com.xx.pmis.services.SocialBudgetService;

public class SocialBudgetServiceImpl implements SocialBudgetService {
	SocialBudgetDAO socialBudgetDAO = null;

	public SocialBudgetServiceImpl(SocialBudgetDAO socialBudgetDAO) {
		super();
		this.socialBudgetDAO = socialBudgetDAO;
	}

	public void saveOrUpdateSocialBudget(SocialBudget socialBudget) throws Exception {
		socialBudgetDAO.saveOrUpdate(socialBudget);
	}

	public void saveSocialBudget(SocialBudget socialBudget) throws Exception {
		socialBudgetDAO.save(socialBudget);
	}

	public SocialBudget getSocialBudgetByBudgetDate(String budgetDate) throws Exception {
		SocialBudget socialBudget = socialBudgetDAO.getSocialBudgetByBudgetDate(budgetDate);
		return socialBudget;
	}



}
